import axios from '../util/axios'

export function getShareList(params={}){
  return axios({
    url:'/admin/haibao',
    method:'GET',
    params
  })
}

export function deleteShare(params={}){
  return axios({
    url:'/admin/haibao',
    method:'DELETE',
    params
  })
}

export function addShareData(params={}){
  return axios({
    url:'/admin/haibao/add',
    method:'POST',
    data:params
  })
}

export function editShareData(params={}){
  return axios({
    url:'/admin/haibao/edit',
    method:'POST',
    data:params
  })
}
export function changeShow(params={}){
  return axios({
    url:'/admin/haibao/switchShow',
    method:'PUT',
    params
  })
}
export function changeShort(params={}){
  return axios({
    url:'/admin/haibao/changeShort',
    method:'PUT',
    params
  })
}
